#ifndef _STEPMOTOR_H
#define _STEPMOTOR_H

#include "stm32f10x.h"
#include "io_bit.h"


#define A   PAout(7)
#define A_  PAout(6)
#define B   PAout(5)
#define B_  PAout(4)


#define beat1 {A=1;A_=0;B=0;B_=1;}
#define beat2 {A=0;A_=1;B=0;B_=1;}
#define beat3 {A=0;A_=1;B=1;B_=0;}
#define beat4 {A=1;A_=0;B=1;B_=0;}

#define RIGHT_TURN 0
#define LEFT_TURN  1

void Step_Mortor_Config(void);
void Beat_Control(u8 turn);
void Step_Mortor_Control(s8 turn);
void Step_Mortor_Stop(void);





#endif

